import service from "@/api/index.js";
import qs from 'qs';
const CollectApi= {
    //收藏
    insert(goodsId){
        return service.post(`/collect/${goodsId}`);
    },
    delete(id){
        return service.delete(`collect/${id}`);
    }
    ,
    //根据商品id用户id进行查询
    selectByGoodsIdAndUserId(goodsId){
        return service.get(`/collect/${goodsId}`);
    },
    selectAll(pageNum,pageSize){
        return service.get("/collect/",{
            params: {
                pageNum,
                pageSize
            }
        });
    }


};
export default CollectApi